package com.demo.demo1.socket;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

public class SocketClient {

//	public void init(){
//		try {
//			    Socket kkSocket = new Socket(hostName, SocketServer.PORT_NUMBER);
//			    PrintWriter out = new PrintWriter(kkSocket.getOutputStream(), true);
//			    BufferedReader in = new BufferedReader(
//			        new InputStreamReader(kkSocket.getInputStream()));
//		}
//		catch(Exception e){
//			
//		}
//		
//		
//		while ((fromServer = in.readLine()) != null) {
//		    System.out.println("Server: " + fromServer);
//		    if (fromServer.equals("Bye."))
//		        break;
//
//		    fromUser = stdIn.readLine();
//		    if (fromUser != null) {
//		        System.out.println("Client: " + fromUser);
//		        out.println(fromUser);
//		    }
//		}
//		
//	}
//	
}
